package com.googlecode.moneyManager.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

/**
 * 
 * @author Sergiy Doroshenko
 *
 */
@Entity
public class Contract extends BaseEntity{
   
   private String number;
	 
   private Deposit deposit;

   
    public String getNumber() {
        return number;
    }

    
    public void setNumber(String number) {
        this.number = number;
    }

    @OneToOne
    @JoinColumn(name="DepositID")
    public Deposit getDeposit() {
        return deposit;
    }

    
    public void setDeposit(Deposit deposit) {
        this.deposit = deposit;
    }
	 
}
 
